/* 
 * Cognitive Profile Copyright (C) 2007 Lois Breur Krause
 */
package cpi;

import org.syntelos.lang.OutputStream;
import org.syntelos.lang.Type;
import org.syntelos.sys.Reference;
import org.syntelos.sx.Request;
import org.syntelos.sx.Response;

/**
 * @author jdp
 */
public class Get
    extends org.syntelos.sx.methods.Get
{

    private final static String Host = "cpi.cognitiveprofile.com";

    private final static String Path = "/cpi/cpi.xml";

    private final static Type TypeTextXml = Type.For("text/xml");

    private final static Reference Handle = new Reference(Host,TypeTextXml,Path);


    public Get(){
        super();
    }


    @Override
    public void respond(Request req)
        throws java.io.IOException,
               java.lang.InterruptedException
    {
        this.setHeader(Version.Instance);
        req.setReference(Handle);
        super.respond(req);
    }
}
